<div id="{{ field.get_html_class_name() }}" class="{% if field.is_subfield %}sub{% endif %}field {{ field.get_html_class_name() }}
  {%- if field.warnings %} warnings{% endif %}
  {%- if field.errors %} errors{% endif %}">
  {%- include "formation/messages_list.jinja" %}
  <fieldset>
    <legend>
      {%- if label_override %}
        {{ label_override }}
      {%- else %}
        {{ field.label }}
        {%- if field.optional %}
          <span class="field-optional">(optional)</span>
        {%- endif %}
      {%- endif %}
    </legend>
    {%- if field.help_text %}
    <div class="field-help_text">
      {%- if help_text_override %}
        {{ help_text_override }}
      {%- else %}
        {{ field.help_text }}
      {%- endif %}
    </div>
    {%- endif %}
    <ul class="checkbox_options options_list">
    {%- for option_key, option_label in field.choices %}
    <li>
      <label class="field-option_label">
        <input type="checkbox" name="{{ field.get_input_name() }}" value="{{ option_key }}"
        {%- if option_key in field.get_current_value() %} checked="checked"{% endif %}>
        <span class="option-display_text">
          {{ option_label }}
        </span>
      </label>
    </li>{% endfor %}
    </ul>
  </fieldset>
</div>